package com.briup.ptp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.briup.ptp.entity.Lifetime;
import com.briup.ptp.service.LifetimeService;
import com.briup.ptp.mapper.LifetimeMapper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;


import java.util.List;

/**
* @author hw
* @description 针对表【lifetime】的数据库操作Service实现
* @createDate 2024-02-19 20:20:44
*/
@Service
public class LifetimeServiceImpl extends ServiceImpl<LifetimeMapper, Lifetime> implements LifetimeService{

    @Override
    public PageInfo<Lifetime> traceProduct( Integer pageSize, Integer pageNum) {
        //从数据据库中查询信息
        List<Lifetime> List= baseMapper.traceProduct(pageSize,pageNum);
        //将结果封装在printInfo中并返回
        PageInfo<Lifetime> pageInfo=new PageInfo<>(List);
        return pageInfo;
    }
}




